package main.java.com.manger.util;

import com.manger.dto.Page;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by LCJ on 2017/6/15.
 */
public class PageUtil {

    public static Page pager(HttpServletRequest request) {
        Page pag = new Page();
        String string = request.getParameter("page");
        if (string==null) {
            return pag;
        }
        Integer page = Integer.parseInt(string);
        pag.setPage(page);
        return pag;
    }
}
